package com.ypd.shop.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import com.ypd.common.annotation.Excel;
import com.ypd.common.core.domain.BaseEntity;

/**
 * 拍卖实时状态（如延时竞价）对象 tb_auction_status
 * 
 * @author lin
 * @date 2025-02-28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AuctionStatus extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 拍卖品ID */
    private String itemId;

    /** 当前最高价 */
    @Excel(name = "当前最高价")
    private BigDecimal currentPrice;

    /** 当前最高价用户ID */
    @Excel(name = "当前最高价用户ID")
    private String leaderId;

    /** 动态调整的拍卖结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "动态调整的拍卖结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime endTime;

    /** 乐观锁版本号 */
    private Integer version;

}
